package com.chen.controller.interceptor;

import org.hibernate.EmptyInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @Title:
 * @Description: to do
 * @Author: chenjiwei
 * @Date: 2020-10-06 14:17
 * @Version: 1.0.0
 */
public class SimpleInterceptor extends EmptyInterceptor {

    private Logger log = LoggerFactory.getLogger(SimpleInterceptor.class);

    public String onPrepareStatement(String sql){
        log.info(sql);
        return super.onPrepareStatement(sql);
    }
}
